package kylin.dao.impl;

import kylin.base.dao.BaseDaoImpl;
import kylin.base.entity.DataTables;
import kylin.dao.AdminUserDao;
import kylin.dao.NetLinkedUserDao;
import kylin.entity.AdminUser;
import kylin.entity.NetLinkedUser;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.internal.util.type.PrimitiveWrapperHelper;
import org.springframework.orm.hibernate4.HibernateCallback;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;


@Repository
public class NetLinkedUserDaoImpl extends BaseDaoImpl<NetLinkedUser> implements NetLinkedUserDao{

	public List<Integer> getUser(final int id, final int flag){
		final String hql = "select r_admin.id from NetLinkedUser where flag = ? and admin.id = ?";

		return (List<Integer>) super.find4Object(hql,flag,id);
	}
}
